<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<div style="background:#fafafa;padding:5px;border:1px solid #ddd">
    <a href="#" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-reload'" onclick="save()">确定</a>
</div>
<div style="text-align: center;margin-top:20px;">
	功能模块名：<input type="text" id="moduleName" name="moduleName"/>
</div>

<script type="text/javascript">
	
	function save() {
		if(!$("#moduleName").val()) {
			return;
		}
		alert($("#moduleName").val());
		$.post("${pageContext.request.contextPath}/boModule", {action:"addBOModule",name:$("#moduleName").val()}, function(data){
			if(data == "success") {
				$('#win').dialog('close');
			} else {
				alert("添加错误");
			}
		});
	}
	
</script>